﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LIMS.BLL
{
    public class LabManager
    {
        private static  LIMS.IDAL.ILab iLab = DALFactory.DataAccess<LIMS.IDAL.ILab>.CreateObject();

        /// <summary>
        /// 获得所有实验室ID列表
        /// </summary>
        /// <returns></returns>
        public static List<String> GetLabIDs()
        {
            List<String> labIDs = new List<string>();
            iLab.FindAll().ForEach(
                (labTmp) =>
                {
                    labIDs.Add(labTmp.labID);
                });
            return labIDs;
        }

    }
}
